package org.jeecg.modules.demo.outstoragemain.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.outstoragemain.entity.OutStorageMain;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date: 2022-02-13
 * @Version: V1.0
 */
public interface OutStorageMainMapper extends BaseMapper<OutStorageMain> {
    /**
     * 根据单据号查询
     *
     * @param billNo
     * @return
     */
    OutStorageMain getByBillNo(@Param("billNo") String billNo);

    /**
     * 查询出库单列表
     *
     * @param storeId
     * @param outType
     * @param beginTime
     * @param endTime
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    IPage<OutStorageMain> searchList(Page page,
                                     @Param("storeId") String storeId, @Param("billNo") String billNo, @Param("outType") String outType,
                                     @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("orderby") String orderby);

}
